#include "stdafx.h"
#include "LadderBuff.h"
#include "InstanceTouch.h"
DECL_INSTANCE_TOUCH(ETouch_LadderBuff);

struct  LadderBuffDefReflectionRegister
{
	LadderBuffDefReflectionRegister()
	{
		REGISTER_REFLECTION_MEMBER(LadderBuff,m_iID,INVALID_ID).Editor_SetAsPrimaryKey();
		REGISTER_REFLECTION_MEMBER(LadderBuff,m_sDisplayName,std::string("DefaultName")).Editor_SetAsDisplayName();
		REGISTER_REFLECTION_MEMBER(LadderBuff,m_iPrice,1).Editor_SetAsRaw();
		REGISTER_REFLECTION_MEMBER(LadderBuff,m_sDesc,std::string("desc")).Editor_SetAsRaw();
		REGISTER_REFLECTION_MEMBER(LadderBuff,m_sIcon,std::string("icon")).Editor_SetAsRaw();
		REGISTER_REFLECTION_MEMBER(LadderBuff,m_iHeroHpAddValue,0).Editor_SetAsRaw("Buff Data");
		REGISTER_REFLECTION_MEMBER(LadderBuff,m_fHeroHpAddPercent,0.f).Editor_SetAsRaw("Buff Data");
		REGISTER_REFLECTION_MEMBER(LadderBuff,m_iRageInitAddValue,0).Editor_SetAsRaw("Buff Data");
		REGISTER_REFLECTION_MEMBER(LadderBuff,m_iRageIncAddValue,0).Editor_SetAsRaw("Buff Data");
		REGISTER_REFLECTION_MEMBER(LadderBuff,m_fRageIncAddPercent,0.f).Editor_SetAsRaw("Buff Data");
		REGISTER_REFLECTION_MEMBER(LadderBuff,m_iExCardBuff,INVALID_ID).Editor_SetAsForeignKey(eDefGroup_Default,eDefaultDef_Reactors,"Buff Data");
		REGISTER_REFLECTION_MEMBER(LadderBuff,m_iExHeroBuff,INVALID_ID).Editor_SetAsForeignKey(eDefGroup_Default,eDefaultDef_Reactors,"Buff Data");

		GlobalClassManager::Instance().RegisterClass(LadderBuff::s_GetReflection(),eDefaultDef_LadderBuff);
		GlobalDefManager::Instance().RegisterDefManger(&LadderBuffManager::Instance());

	}
}___LadderBuffDefReflectionRegister;

rewrite  void LadderBuff::OnArchieveReaded()
{
}

void LadderBuffManager::OnArchieveReaded()
{
	__LadderBuffManager::OnArchieveReaded();
}